<?php

//Connexion a la base de donnee
$hostname = "localhost"; // nom de votre serveur
$database = "fujicraft"; // nom de votre base de donnees
$username = "root"; // nom d'utilisateur (root par defaut) !!! ATTENTION, en utilisant root, vos visiteurs on tout les droits sur la base
$password = ""; // mot de passe (aucun par defaut mais il est conseille d'en mettre un)
$dbconnect = mysql_pconnect($hostname, $username, $password) or trigger_error(mysql_error(), E_USER_ERROR);


/* Tables de la base de donnee */
$tb_iconomy = "iconomy";
$tb_team = "tb_team";
$tb_plugins = "tb_plugins";
$tb_faq = "tb_faq";
$tb_info = "tb_info";
$tb_utilisateurs = "tb_utilisateurs";
$tb_mp = "tb_mp";
$tb_mp_rep = "tb_mp_rep";
$tb_news = "tb_news";
$tb_comment = "tb_comment";
$tb_admin = "tb_admin";

/* Information Globale */
$query_info = "SELECT * FROM  " . $database . "." . $tb_info . "";
$result_info = @mysql_query($query_info) OR DIE(
                "<link rel='stylesheet' type='text/css' href='./css/style.css' media='all' /><center><img src='./images/structure/logo.png' /><br /><br /><div class=\"rounded\" style=\"background: #FFF; border: 1px solid navy; padding: 2%; margin-left: 25%; margin-right: 25%;\"><h3>Erreur de connexion &agrave; la base de donn&eacute;e.</h3><br/>
                    <br />
                    Vous devez v&eacute;rifier les informations donn&eacute;es dans le fichier \"<b>/admin/connexion.php</b>\".<br />
                    <br />
                    <u><b>Serveur :</b></u> <i>$hostname</i><br />
        <u><b>Base de donn&eacute;e :</b></u> <i>$database</i><br />
        <u><b>Utilisateur :</b></u> <i>$username</i><br />
        <u><b>Mot de passe :</b></u> <i>$password</i><br /></div></center>"
);
$line_info = mysql_fetch_assoc($result_info);

$site = $line_info['sitename_info'];
$extension = $line_info['extension_info'];
$forum = $line_info['forum_info'];
$map = $line_info['dynmap_info'];
$live = $line_info['live_info'];
$youtube = $line_info['youtube_info'];
$facebook = $line_info['facebook_info'];
$ts = $line_info['tsip_info'] . ":" . $line_info['tsport_info'];
$ts_ip = $line_info['tsip_info'];
$ts_port = $line_info['tsport_info'];
$mumble = $line_info['mumbleip_info'] . ":" . $line_info['mumbleport_info'];
$mumble_ip = $line_info['mumbleip_info'];
$mumble_port = $line_info['mumbleport_info'];
$admin = "Administration";
$version = "3.11";

/* Information serveur Minecraft */
$host = $line_info['serverip_info'];
$port = $line_info['serverport_info'];
$minecraft = $line_info['serverversion_info'];
$bukkit = $line_info['bukkitversion_info'];
?>